<!DOCTYPE html>
<html class="x-admin-sm">
  <head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="__ADMIN__/css/font.css">
    <link rel="stylesheet" href="__ADMIN__/css/xadmin.css">
    <script type="text/javascript" src="__ADMIN__/js/jquery.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__ADMIN__/js/xadmin.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/cookie.js"></script>
    <style>
        .layui-btn+.layui-btn{
            margin-left: 0;
        }
        .layui-table td, .layui-table th
        {
            min-width: 50px !important;
        }
    </style>
  </head>
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>{$nav}</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh-3" style="line-height:30px"></i></a>
    </div>
    <div class="x-body x-admin">
        <xblock style="display: flex;">
        
        </xblock>
        
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
          <legend>部门数据</legend>
        </fieldset>
        
        <div class="layui-table-body layui-table-main" style="width: 70%;min-height:0;">
        <table class="layui-table layui-form" lay-filter="dataTable" id="dataTable"> </table>
        </div>
        <script type="text/html" id="toolbarDemo">
        </script>
        <script type="text/html" id="rank">{{d.LAY_TABLE_INDEX+1}}</script>
    </div>


    <script>
      layui.use(['form','layer','jquery','table','util'], function(){
        form = layui.form,
        layer = layui.layer
        ,$ = layui.jquery
        ,table = layui.table
        ,util = layui.util;
        
        
        
          table.render({
            elem: '#dataTable'
            ,url:'{:url('admin/stats/departData')}'
            ,toolbar: '#toolbarDemo' 
            ,defaultToolbar: ['filter', 'exports', 'print']
            ,limit: 1000
            ,title: '部门数据'
            ,cols: [[
                {field:'rank', title: '', width: 50, sort: false, templet: '#rank'},
                {field:'name',  title:"小组名/姓名"},
                {field:'day_lr', width:100, title:"当日录入"},
                {field:'max_count_day', width:100, title:"当日上限"},
                {field:'week_lr',width:100, sort: false, title:"本周录入"},
                {field:'week_qd',width:100, sort: false, title:"本周签单"},
                {field:'month_lr', width:120, sort: false,title:"本月录入"},
                {field:'month_qd', width:120, sort: false,title:"本月签单"},
                {field:'total_lr', width:150, sort: false,title:"总录入"},
                {field:'total_qd', width:150, sort: false,title:"总签单"},
            ]]
            ,page: false
          });

      });

    </script>
  </body>

</html>